#pragma  once 
#include<iostream>
using namespace std;
class Task{

  private:
    int x;
    int y;
    char op;
  public:
    Task(int _x,int _y,char _op):x(_x),y(_y),op(_op)
  {}
    void Run()
    {
      int result=0;
      switch(op){
        case'+':
          result=x+y;break;
        case'-':
          result=x-y;break;
        case'*':
          result=x*y;break;
        case'/':
          if(y==0)
          {
            cout<<"除零！！"<<endl;
            result=-1;
          }
          else 
          result=x/y;break;
        default: break;

      }
      cout<<x<<op<<y<<"="<<result<<endl;
    }
    Task()
    {

    }
    ~Task()
    {}
};
